package com.finance.service.customer;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.finance.dao.customer.ContactsMapper;
import com.finance.entity.customer.Contacts;

@Service("ContactsService")
public class ContactsService {
	
	@Resource(name = "ContactsMapper")
	private ContactsMapper contactsMapper;
	
    public void deleteByPrimaryKey(String contactsId){
    	contactsMapper.deleteByPrimaryKey(contactsId);
    }

    public void insert(Contacts record){
    	contactsMapper.insert(record);
    }

    public void insertSelective(Contacts record){
    	contactsMapper.insertSelective(record);
    }

    public Contacts selectByPrimaryKey(String contactsId){
    	return contactsMapper.selectByPrimaryKey(contactsId);
    }

    public void updateByPrimaryKeySelective(Contacts record){
    	contactsMapper.updateByPrimaryKeySelective(record);
    }

    public void updateByPrimaryKey(Contacts record){
    	contactsMapper.updateByPrimaryKey(record);
    }
    
    public List<Contacts> findByList(String kfUserId){
    	return contactsMapper.findByList(kfUserId);
    }

}
